from rest_framework import serializers
from goods.models import GoodCategoryVisit


class GoodsDayVisitSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)
    class Meta:
        model = GoodCategoryVisit
        fields = ('id', 'count', 'category')
